	<!-- BEGIN header -->
	<include file="public:header" />
	<!-- END header -->

	<!-- BEGIN CONTAINER -->

	<div class="page-container row-fluid">
		{$left_menu}
		<!-- BEGIN PAGE -->

		<div class="page-content">

			

			<!-- BEGIN PAGE CONTAINER-->        

			<div class="container-fluid">

				<!-- BEGIN PAGE HEADER-->

				<div class="row-fluid">

					<div class="span12">

						<!-- BEGIN STYLE CUSTOMIZER -->

						<!-- END BEGIN STYLE CUSTOMIZER -->  

						<!-- BEGIN PAGE TITLE & BREADCRUMB-->

						<!-- BEGIN PAGE TITLE & BREADCRUMB-->
						<include file="public:breadcrumb" />
						<!-- END PAGE TITLE & BREADCRUMB-->
						
						<!-- BEGIN sub_menu -->
						<include file="public:sub_menu" />
						<!-- END sub_menu -->

					</div>

				</div>

				<!-- END PAGE HEADER-->

				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">

					<div class="span12">

						<!-- BEGIN VALIDATION STATES-->

						<div class="portlet box blue">

							<div class="portlet-title">

								<div class="caption"><i class="icon-reorder"></i>附件设置</div>

								<div class="tools">

									<a href="javascript:;" class="collapse"></a>

								</div>

							</div>

							<div class="portlet-body form">

								<!-- BEGIN FORM-->

								<form action="{:U(MODULE_NAME.'/edit',array('menuid'=>$_GET['menuid'],'menupid'=>$_GET['menupid']))}" method="post" id="form_sample_1" class="form-horizontal" novalidate="novalidate">

									<volist name="list" id="v">
										<div class="control-group">
											<label class="control-label">{$v.remark}</label>
											 <eq name="v['stype']" value="1">
											<div class="controls">

												<input name="setting[{$v.name}]" class="span6 m-wrap" type="text" value="{:C('zyb_'.$v['name'])}">

											
											</eq>
											 <eq name="v['stype']" value="3">
											 <div class="controls">
												<textarea rows="3" class="span6 m-wrap"  name="setting[{$v.name}]">{:C('zyb_'.$v['name'])}</textarea>
											</eq>
											<eq name="v['stype']" value="4">
											<div class="controls">

												<label class="radio">

												<input name="setting[{$v.name}]" value="1" type="radio" <if condition="C('zyb_'.$v['name']) eq 1"> checked="checked"</if>>

												是

												</label>

												<label class="radio">

												<input name="setting[{$v.name}]" value="0" type="radio" <if condition="C('zyb_'.$v['name']) eq 0"> checked="checked"</if>>

												否

												</label> 
												
											</eq>
											<eq name="v['stype']" value="5"><?php $img=C('zyb_'.$v['name']); ?>
											<div class="controls">
												<input type="text"  name="setting[{$v.name}]" id="setting_{$v.name}" class="input-text Jinput" style="width:45%" value="<notempty name="img">{:attach($img,'','www')}</notempty>">
												<input type="button" value="上传图片" class="upload_btn  J_showdialog"  data-callback="putFile"  data-uri="{:U('attachment/add',array('param'=>'setting_'.$v['name'],'module'=>'setting'))}"  data-title="上传图片" data-id="uploaded" data-width="652" data-height="410" title="上传图片" />
												<input type="button" value="裁减图片" class="button_btn" onclick="crop_cut_thumb(this);"  data-uri="{:U('attachment/cutimage',array('uploadid'=>'setting_'.$v['name']))}"  data-title="上传图片" data-id="cutimted" data-width="680" data-height="500" />
												<input type="button" value="查看图片" class="button_btn" onclick="openW('Jinput');" />
											</eq>
											<span class="help-inline">{$v.name}</span>
											</div>
										</div>
									</volist>
									<input type="hidden" name="menuid"  value="{$menuid}"/>
									

									<div class="form-actions">

										<button type="submit" class="btn blue">设置</button>

										<a href="javascript:history.go(-1)" type="button" class="btn">取消</a>

									</div>

								</form>

								<!-- END FORM-->

							</div>

						</div>

						<!-- END VALIDATION STATES-->

					</div>

				</div>
				

				

				<!-- END PAGE CONTENT-->

			</div>

			<!-- END PAGE CONTAINER-->

		</div>

		<!-- END PAGE -->

	</div>

	<!-- END CONTAINER -->
	
	<!-- BEGIN FOOTER -->
	<include file="public:footer" />
	<!-- END FOOTER -->
</html>